Optimal. Leaf size=301 \[ \frac {a^{5/2} (400 A+326 B+283 C) \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{128 d}+\frac {a^3 (1040 A+950 B+787 C) \sin (c+d x)}{960 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (400 A+326 B+283 C) \sin (c+d x)}{128 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (80 A+110 B+79 C) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{240 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {a (2 B+C) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{8 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {C (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.68, antiderivative size = 301, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 45, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.156, Rules used = {4350, 4173,
4103, 4101, 3888, 3886, 221} \begin {gather*} \frac {a^{5/2} (400 A+326 B+283 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{128 d}+\frac {a^3 (400 A+326 B+283 C) \sin (c+d x)}{128 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}+\frac {a^3 (1040 A+950 B+787 C) \sin (c+d x)}{960 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}+\frac {a^2 (80 A+110 B+79 C) \sin (c+d x) \sqrt {a \sec (c+d x)+a}}{240 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {a (2 B+C) \sin (c+d x) (a \sec (c+d x)+a)^{3/2}}{8 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {C \sin (c+d x) (a \sec (c+d x)+a)^{5/2}}{5 d \cos ^{\frac {5}{2}}(c+d x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 221
Rule 3886
Rule 3888
Rule 4101
Rule 4103
Rule 4173
Rule 4350
Rubi steps
\begin {align*} \int \frac {(a+a \sec (c+d x))^{5/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\cos ^{\frac {3}{2}}(c+d x)} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx\\ &=\frac {C (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \left (\frac {1}{2} a (10 A+3 C)+\frac {5}{2} a (2 B+C) \sec (c+d x)\right ) \, dx}{5 a}\\ &=\frac {a (2 B+C) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{8 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {C (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \left (\frac {1}{4} a^2 (80 A+30 B+39 C)+\frac {1}{4} a^2 (80 A+110 B+79 C) \sec (c+d x)\right ) \, dx}{20 a}\\ &=\frac {a^2 (80 A+110 B+79 C) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{240 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {a (2 B+C) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{8 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {C (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \left (\frac {3}{8} a^3 (240 A+170 B+157 C)+\frac {1}{8} a^3 (1040 A+950 B+787 C) \sec (c+d x)\right ) \, dx}{60 a}\\ &=\frac {a^3 (1040 A+950 B+787 C) \sin (c+d x)}{960 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (80 A+110 B+79 C) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{240 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {a (2 B+C) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{8 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {C (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {1}{128} \left (a^2 (400 A+326 B+283 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {a^3 (1040 A+950 B+787 C) \sin (c+d x)}{960 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (400 A+326 B+283 C) \sin (c+d x)}{128 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (80 A+110 B+79 C) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{240 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {a (2 B+C) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{8 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {C (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {1}{256} \left (a^2 (400 A+326 B+283 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {a^3 (1040 A+950 B+787 C) \sin (c+d x)}{960 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (400 A+326 B+283 C) \sin (c+d x)}{128 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (80 A+110 B+79 C) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{240 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {a (2 B+C) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{8 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {C (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}-\frac {\left (a^2 (400 A+326 B+283 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{a}}} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{128 d}\\ &=\frac {a^{5/2} (400 A+326 B+283 C) \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{128 d}+\frac {a^3 (1040 A+950 B+787 C) \sin (c+d x)}{960 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (400 A+326 B+283 C) \sin (c+d x)}{128 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (80 A+110 B+79 C) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{240 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {a (2 B+C) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{8 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {C (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 6.52, size = 212, normalized size = 0.70 \begin {gather*} \frac {a^2 \sec \left (\frac {1}{2} (c+d x)\right ) \sqrt {a (1+\sec (c+d x))} \left (60 \sqrt {2} (400 A+326 B+283 C) \tanh ^{-1}\left (\sqrt {2} \sin \left (\frac {1}{2} (c+d x)\right )\right ) \cos ^5(c+d x)+(20560 A+22030 B+24863 C+12 (1360 A+1950 B+2343 C) \cos (c+d x)+4 (6640 A+6730 B+6509 C) \cos (2 (c+d x))+5440 A \cos (3 (c+d x))+6520 B \cos (3 (c+d x))+5660 C \cos (3 (c+d x))+6000 A \cos (4 (c+d x))+4890 B \cos (4 (c+d x))+4245 C \cos (4 (c+d x))) \sin \left (\frac {1}{2} (c+d x)\right )\right )}{15360 d \cos ^{\frac {9}{2}}(c+d x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(721\) vs.
\(2(259)=518\).
time = 0.19, size = 722, normalized size = 2.40
method | result | size |
default | \(-\frac {a^{2} \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (-1+\cos \left (d x +c \right )\right ) \left (6000 A \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (1+\cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right ) \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right )+6000 A \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (-1-\cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right ) \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right )+4890 B \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (1+\cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right ) \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right )+4890 B \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (-1-\cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right ) \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right )+4245 C \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (1+\cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right ) \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right )+4245 C \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (-1-\cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right ) \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right )+12000 A \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \left (\cos ^{4}\left (d x +c \right )\right )+9780 B \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \left (\cos ^{4}\left (d x +c \right )\right )+8490 C \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \left (\cos ^{4}\left (d x +c \right )\right )+5440 A \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \left (\cos ^{3}\left (d x +c \right )\right )+6520 B \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \left (\cos ^{3}\left (d x +c \right )\right )+5660 C \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \left (\cos ^{3}\left (d x +c \right )\right )+1280 A \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right )+3680 B \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right )+4528 C \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right )+960 B \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \cos \left (d x +c \right )+2784 C \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \cos \left (d x +c \right )+768 C \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )\right )}{3840 d \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )^{2} \cos \left (d x +c \right )^{\frac {9}{2}}}\) | \(722\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 12710 vs.
\(2 (259) = 518\).
time = 1.91, size = 12710, normalized size = 42.23 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.15, size = 579, normalized size = 1.92 \begin {gather*} \left [\frac {4 \, {\left (15 \, {\left (400 \, A + 326 \, B + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{4} + 10 \, {\left (272 \, A + 326 \, B + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{3} + 8 \, {\left (80 \, A + 230 \, B + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{2} + 48 \, {\left (10 \, B + 29 \, C\right )} a^{2} \cos \left (d x + c\right ) + 384 \, C a^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) + 15 \, {\left ({\left (400 \, A + 326 \, B + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{6} + {\left (400 \, A + 326 \, B + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{5}\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 4 \, \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} {\left (\cos \left (d x + c\right ) - 2\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 7 \, a \cos \left (d x + c\right )^{2} + 8 \, a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2}}\right )}{7680 \, {\left (d \cos \left (d x + c\right )^{6} + d \cos \left (d x + c\right )^{5}\right )}}, \frac {2 \, {\left (15 \, {\left (400 \, A + 326 \, B + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{4} + 10 \, {\left (272 \, A + 326 \, B + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{3} + 8 \, {\left (80 \, A + 230 \, B + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{2} + 48 \, {\left (10 \, B + 29 \, C\right )} a^{2} \cos \left (d x + c\right ) + 384 \, C a^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) + 15 \, {\left ({\left (400 \, A + 326 \, B + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{6} + {\left (400 \, A + 326 \, B + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{5}\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{a \cos \left (d x + c\right )^{2} - a \cos \left (d x + c\right ) - 2 \, a}\right )}{3840 \, {\left (d \cos \left (d x + c\right )^{6} + d \cos \left (d x + c\right )^{5}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{{\cos \left (c+d\,x\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________